package com.zzyl.nursing.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzyl.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class AlertDataDto {


    /**
     * 主键
     */
    @ApiModelProperty(value = "主键ID")
    @NotNull(message = "id不能为空")
    @Min(value = 1, message = "ID必须大于0")
    private Long id;

    /**
     * 处理结果
     */
    @Excel(name = "处理结果")
    @NotBlank(message = "处理结果不能为空")
    @ApiModelProperty(value = "处理结果")
    private String processingResult;

    /**
     * 处理时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotBlank(message = "处理结果不能为空")
    @Excel(name = "处理时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "处理时间")
    private String processingTime;

}
